package com.hut.oa.model.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hut.oa.model.bean.FileManage;

@Repository
public interface AddressBookMapper {

	List<Map<String, Object>> selectaddressbyid(@Param("id") Long id);
	
	List<Map<String, Object>> selectaddressbyaddid(@Param("id") Long id);
	
	int  deletebyaddressid(@Param("addressid") Long id);
	
	int deletebyaddressidanduser(@Param("addressid") Long id,@Param("userid") Long userid);
	
	List<Map<String, Object>> selectaddressdirtype(@Param("addressid") Long id,@Param("typeid") Long typeid,@Param("dirid") Long dirid );
}
